package com.github.phoenics.teacher.itheima.netty.spring;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @author Phoenics Chow
 * on 2020年03月02日
 */
@RestController
@SpringBootApplication
public class TestController {
    @RequestMapping(value = "test", method = RequestMethod.GET)
    public Mono<String> testMono() {
        System.out.println("[TestService].....");
        return Mono.just("Netty hello word");
    }
    public static void main(String[] args) {
        SpringApplication.run(TestController.class, args);
    }
}
